﻿<%@ Page Language="C#" MasterPageFile="~/ProductManager/ProductManage.Master" AutoEventWireup="true" CodeFile="FriendlyLink.aspx.cs" Inherits="GoShopping.Web.SystemManager.FriendlyLink" Title="无标题页" %>
<%@ Register Assembly="ExtensionGridView" Namespace="ExtensionControls" TagPrefix="cc2" %>
<%@ Register Assembly="GoShopping.Components" Namespace="BaseText" TagPrefix="cc1" %>
<%@ Register Assembly="GoShopping.Components" Namespace="BaseText" TagPrefix="cc2" %>
<%@ MasterType VirtualPath="~/ProductManager/ProductManage.Master" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table class="style1" border="0" cellpadding="0" cellspacing="0" width="800px">
                <tr>
                    <td class="style3">
                       显示的文字:</td>
                    <td>
                        <cc1:ZLTextBox ID="zltxtTitle" runat="server" Width="350px"></cc1:ZLTextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="zltxtTitle">不能为空</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style3">
                        链接地址:</td>
                    <td>
                        <cc1:ZLTextBox ID="zltxtLinkAddress" runat="server" Width="350px"></cc1:ZLTextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ControlToValidate="zltxtLinkAddress">不能为空</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style3">
                        所在的次序:</td>
                    <td>
                        <asp:DropDownList ID="ddlOrder" runat="server" Width="128px">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="style3">
                        <asp:Button ID="btnAdd" runat="server" Text="添加" onclick="btnAdd_Click" />
                        <asp:Button ID="btnClear" runat="server" CausesValidation="False" Text="清除" 
                            onclick="btnClear_Click" />
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>
            <table border="0" cellpadding="0" cellspacing="0" class="style1">
                <tr>
                    <td>
                        友情链接列表:</td>
                </tr>
                <tr>
                    <td>
                        <asp:GridView ID="extGVFriendlyLink" runat="server" 
                            AutoGenerateColumns="False" PagerText="当前第{0}页,共{1}页{2}条记录" RecordCount="-1" 
                            SortAscImageUrl="" SortDescImageUrl="" Width="800px" 
                            onpageindexchanging="extGVFriendlyLink_PageIndexChanging" 
                            AllowPaging="True" EmptyDataText="No Data!">
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="cbSingle" runat="server" />
                                    </ItemTemplate>
                                    <HeaderTemplate>
                                        <asp:CheckBox ID="cbAll" runat="server" AutoPostBack="True" 
                                            oncheckedchanged="cbAll_CheckedChanged" />
                                    </HeaderTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="ID" Visible="False">
                                    <ItemTemplate>
                                        <asp:Label ID="lblId" runat="server" Text='<%# Eval("ID") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="标题">
                                    <ItemTemplate>
                                        <asp:Label ID="lblTitle" runat="server" Text='<%# Eval("Title") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="链接地址">
                                    <ItemTemplate>
                                        <asp:Label ID="lblLinkUrl" runat="server" Text='<%# Eval("LinkUrl") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="次序">
                                    <ItemTemplate>
                                        <asp:Label ID="lblOrder" runat="server" Text='<%# Eval("Order") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <HeaderStyle HorizontalAlign="Left" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="btnDel" runat="server" CausesValidation="False" Text="删除" 
                            onclick="btnDel_Click" style="width: 40px" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnDel" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="btnAdd" EventName="Click" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>

